// 编辑规则
export const rules = {
  name: [
    {
      required: true,
      message: "请输入用户名",
      trigger: "blur",
    },
    {
      pattern: /^[a-z0-9]{6,10}$/,
      message: "用户名应为六到十个字母或数字",
      trigger: "blur",
    },
  ],
  password: [
    {
      required: true,
      message: "请输入密码",
      trigger: "blur",
    },
    {
      pattern: /^[a-z0-9]{6,50}$/,
      message: "密码最少六位，支持字母及数字",
      trigger: "blur",
    },
  ],
};
